<?php
if (empty($_SERVER['HTTP_REFERER'])) {
	$fromurl='/';
   header("Location:".$fromurl);
	exit();
} 
?>